package com.bajiao.vo.cart;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;

@Data
@ApiModel("CartResponse")
public class CartResponse {

    @ApiModelProperty("购物车id")
    private String id;

    @ApiModelProperty("商品id")
    private String productId;

    @ApiModelProperty("购买数量")
    private Integer buyNum;

    @ApiModelProperty("商品名称")
    private String title;

    @ApiModelProperty("商品封面")
    private String cover;

    @ApiModelProperty("商品单价")
    private BigDecimal price;

    @ApiModelProperty("销量")
    private Long sales;

    @ApiModelProperty("商品总价")
    private BigDecimal productPrice;

    @ApiModelProperty("优惠金额")
    private BigDecimal discountPrice = BigDecimal.ZERO;
}
